﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TeamBuy.AccessWebUI.Components.DefaultPages
{
    public partial class Side_LatestQuestion : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            adsLatestQuestion.SelectCommand = "SELECT Top 3 * FROM [vw_QuestionInfo] WHERE ([CityID] = " + ((Components.Head)(Page.Master.Master.FindControl("Head1"))).CurrentCityID + ") order by QuestionID DESC";
        }

        public int CurrentDealID
        {
            get
            {
                return ((Components.DefaultPages.Main_DealDetail)this.Parent.FindControl("Main_DealDetail1")).GetCurrentDealID();
            }
        }
    }
}